import request from '@/utils/request'

// 查询泵组信息列表
export function listDispatchPumpGroups(query) {
  return request({
    url: '/system/dispatchPumpGroups/list',
    method: 'get',
    params: query
  })
}

// 查询泵组信息详细
export function getDispatchPumpGroups(pumpGroupId) {
  return request({
    url: '/system/dispatchPumpGroups/' + pumpGroupId,
    method: 'get'
  })
}

// 新增泵组信息
export function addDispatchPumpGroups(data) {
  return request({
    url: '/system/dispatchPumpGroups',
    method: 'post',
    data: data
  })
}

// 修改泵组信息
export function updateDispatchPumpGroups(data) {
  return request({
    url: '/system/dispatchPumpGroups',
    method: 'put',
    data: data
  })
}

// 删除泵组信息
export function delDispatchPumpGroups(pumpGroupId) {
  return request({
    url: '/system/dispatchPumpGroups/' + pumpGroupId,
    method: 'delete'
  })
}
